﻿//===============================================================================
//	ServerHeartManager.h
//	服务器间心跳管理器
//===============================================================================

#pragma once

#include "GameObject.h"
#include "LuaManager.h"

#include <unordered_map>
#include <queue>
#include <vector>
#include <string>
#include <set>
#include <array>
#include <mutex>

//-------------------------------------------------------------------------------
class ServerHeartManager
{
public:
	ServerHeartManager();
	~ServerHeartManager();

public:
	void Heartbeat(uint64_t now);
	void UpdateG2MHeart();


public:
	void Initialize(void);

	access_variable(uint64_t,	LastMapHeartTime,	m_lastMapHeartTime);


private:
	uint64_t m_lastMapUpdateTime; // 上次map更新时间
	uint64_t m_lastMapHeartTime;
	bool	 m_isMapStatus; // map状态
};


